
#include <stdio.h>
#include <stdlib.h>

#include <string.h>
#include <time.h>
#define assert(x)

#include "gui_drawbase.h"
#include "gui_language.h"
#include "hi_type.h"

//#define HI_3560

/**************************************************************************/
extern OSDURFACEDESC    gOSDddsd;
extern int GetScreenWidth(void);
extern int GetScreenHeight(void);
extern int stb_draw_init(void);
extern HI_S32 LAYER_OsdInit(void);
extern void LAYER_HideOSD(void);
extern void LAYER_DisplayOSD(void);
extern void LAYER_CloseGraph(void);
extern int LAYER_SetLayerAlpha(HI_U8 Alpha);

//#if(GRAPHICS_COLOR_MODE==1)
//#if (GRAPHICS_COLOR_MODE==32)



//#ifdef CREAT_GRAPH
int init_graph(void)
{
	int ErrCode = OK;

	ErrCode = LAYER_OsdInit();
	if (ErrCode != OK) {
              LOGE("GTLAYER_OsdInit fail!,err:%d\n",ErrCode);
	}

	return ErrCode;
}

void HideOSD(void)
{
    LAYER_HideOSD();
}

void DisplayOSD(void)
{
    LAYER_DisplayOSD();
}

void close_graph(void)
{
    LAYER_CloseGraph();
}


//#else
//    #error Please Set GRAPHICS_COLOR_MODE to be 16 or 32!!
//#endif //#if (GRAPHICS_COLOR_MODE==32)
//#endif //DVBC_COLOR_MODE_FLAG==1)


